using System;
using System.Collections.Generic;
using System.Text;

namespace PerlinNoise.Interpolator
{
    public class LinearInterpolator : AbstractInterpolator
    {
        public override int StartPointIndex { get { return 0; } }
        public override uint PointsNumber { get { return 2; } }

        public override double interpolate(double[] values, double frac)
        {
            return values[0] * (1.0d - frac) + values[1] * frac;
        }
    }
}
